package com.hyy.api.domain.sms.cmpp2;


import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Data
@Document(collection = InputLog.COLLECTION_NAME)
public class InputLog {

    private static final long serialVersionUID = 1L;

    public static final String COLLECTION_NAME = "input_log";

    @Id
    private String id;

    private String protocolTypeCode;
    private String messageTypeCode;
    private String sourceIP;
    private Date inputDate;
    private String content;
    private String subCode;
    private String charset;
    //客户报告msgid
    private String crMsgId;

    private String msgBatchNo;
    private String countryCode;
    private String phoneNos;
    private Long crmCustomerId;
    private String account;
    private Long channelId;

    //用户短信日志
    @JSONField(name = "uMsgId")
    private String uMsgId;
    @JSONField(name = "uSeq")
    private int uSeq;
    @JSONField(name = "uPktotal")
    private short uPktotal;
    @JSONField(name = "uPkNum")
    private short uPkNum;
    @JSONField(name = "uTpudhi")
    private short uTpudhi;
    @JSONField(name = "uMsgLen")
    private short uMsgLen;


    private Integer isResend;
    private String originCrMsgId;
    private String originId;


    private Date createDate;

    /**
     * 运营商
     */
    private String ispCode;
    /**
     * 归属省
     */
    private String province;
    /**
     * 城市
     */
    private String city;

    /**
     * 年月日
     */
    private String ymd;

    private String msgExtId;
    private int reconsumeTimes;


}
